export function uploadtempFile(path) {
 	return new Promise((resolve, reject) => {
		const token = uni.getStorageSync('token');
 		uni.uploadFile({
 			url: `${baseURL}/api/wx/uploadAvatar`,
 			filePath: path,
 			name: 'avatar',
 			header: {
 				"authorization": "Bearer " + token,
				"Content-Type": "application/json;charset=UTF-8"
 			},
 			success(res) {
 				var data = JSON.parse(res.data)
 				if (data.code == 200) {
				
 					resolve(data.data)
 				} else {
 					reject(data.msg);
 				}
				 
 			},
 			fail(err) {
 				reject(err);
				 
 			} 
			 
 		})
 	})
 }